﻿
@{
    ViewBag.Title = "ExamHistory";
}

<h2>ExamHistory</h2>

<div>
    <!-- Slider (Flex Slider) -->

    <div class="container" style="min-height:500px;">

        <div class="row">
            <div class="col-xs-3">
                <ul class="nav default-sidenav">
                    <li>
                        @Html.ActionLink("用户中心", "UserCenter", "Student", new { @class = "fa fa-cogs" })
                    </li>
                    <li>
                        @Html.ActionLink("统计分析", "Analysis", "Student", new { @class = "fa fa-cogs" })
                    </li>
                    <li class="active">
                        @Html.ActionLink("考试历史", "ExamHistory", "Student", new { @class = "fa fa-cogs" })
                    </li>
                </ul>
            </div>
            <div class="col-xs-9">
                <div class="page-header">
                    <h1><i class="fa fa-history"></i> 练习历史</h1>
                </div>
                <div class="page-content row">
                    <div id="question-list">
                        <table class="table-striped table">
                            <thead>
                                <tr>
                                    <td>试卷名称</td>
                                    <td>参加时间</td>
                                    <td>得分</td>
                                    <td>操作</td>
                                </tr>
                            </thead>
                            <tbody>
                                <c:foreach items="${hisList }" var="item">
                                    <tr>

                                        <td>
                                            <c:if test="${item.examPaperId == -1 }">
                                                <a href="student/exam-report" target="_blank" title="预览">${item.paperName }</a>
                                        </td>
                                        </c:if>
                                        <c:if test="${item.examPaperId != -1 }">
                                            <a href="student/exam-report/${item.examPaperId }" target="_blank" title="预览">${item.paperName }</a></td>
                                        </c:if>
                                        <td>
                                            <fmt:formatdate value="${item.createTime }" pattern="yyyy-MM-dd" />
                                        </td>
                                        <td>
                                            ${item.pointGet }
                                        </td>
                                        <td>

                                            <c:if test="${item.examPaperId == -1 }">
                                                <a href="student/finish-exam" target="_blank" title="预览">查看报告</a>
                                        </td>
                                        </c:if>
                                        <c:if test="${item.examPaperId != -1 }">
                                            <a href="student/finish-exam/${item.examPaperId }" target="_blank" title="预览">查看报告</a></td>
                                        </c:if>
                                        </td>
                                    </tr>
                                </c:foreach>

                            </tbody>
                            <tfoot></tfoot>
                        </table>
                    </div>
                    <div id="page-link-content">
                        <ul class="pagination pagination-sm">${pageStr}</ul>
                    </div>

                </div>

            </div>
        </div>
    </div>
</div>